package br.edu.univas.jobmanager.controller;

import java.io.IOException;

import br.edu.univas.jobmanager.dao.BackupDAO;
import br.edu.univas.jobmanager.listener.BackupListener;

public class ControllerBackup {
	
	private BackupDAO _backupDAO;
	
	public ControllerBackup() {
		_backupDAO = new BackupDAO();
	}
	
	public BackupListener getBackupListener(){
		return new BackupListener() {
			
			@Override
			public void recuperaBackupAction() throws IOException {
				_backupDAO.recuperaBackup();
			}
			
			@Override
			public void geraBackupAction() throws IOException {
				_backupDAO.geraBackup();
			}
		};
	}
}
